class ClassroomDetail
  include DataMapper::Resource
  storage_names[:default] = "ClassroomDetail"
  
  property :id,               Serial
  property :classroom_id,     Integer,       :required => true
  property :order,            Integer
  property :title,            String,        :length => 500
  property :content,          Text,          :required => true, :lazy => false
  property :duration,         Integer
  property :time_category_id, Integer
  timestamps :at

  belongs_to :classroom
  belongs_to :time_category
end
